<?php

namespace App\Transformers;

use App\Model\CartItem;
use App\Model\Product;
use League\Fractal\TransformerAbstract;
use App\User;

class CartTransformer extends TransformerAbstract
{
    public function transform(CartItem $cartItem)
    {
        return $cartItem->toArray();

        return [
            'id' => $cartItem->id,
        ];
    }
}
